package com.example.demo01.Entity.webEntity;

/**
 * 类：服务点到目标点的距离
 * */
public class ServicePointWithDis extends ServicePoint {
    //attributes
    private Integer id;
    private Float distance;
    private String area;

    //setter
    public void setId(Integer id) {
        this.id = id;
    }
    public void setDistance(Float distance) {
        this.distance = distance;
    }
    public void setArea(String area) {
        this.area = area;
    }

    //getter
    public Integer getId() {
        return id;
    }
    public Float getDistance() {
        return distance;
    }
    public String getArea() {
        return area;
    }

    //constructors
    public ServicePointWithDis() {
        super();
    }

    public ServicePointWithDis( Integer id, String name, String area , Float lon, Float lat, Float distance) {
        super(name, lon, lat);
        this.id = id;
        this.distance = distance;
        this.area = area;
    }

    @Override
    public String toString() {
        return "ServicePointWithDis{" +
                "id=" + id +
                ", distance=" + distance +
                ", area='" + area + '\'' +
                ", name='" + name + '\'' +
                ", lon=" + lon +
                ", lat=" + lat +
                '}';
    }
}
